package com.zx.BookSeaReader.entity.bookstore;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;

import androidx.annotation.Nullable;

/**
 * @Author: ZX
 * @Time: 2020/2/15
 * @Description: 书城小说分类
 */
@Entity
public class BookType implements Serializable {
    @Transient
    private static final long serialVersionUID = 1L;
    @Id(autoincrement = true)
    private Long typeid;
    private String typeName;//分类名称
    @Nullable
    private int typeNum;//分类数字
    private String url;//分类链接

    @Generated(hash = 1058030677)
    public BookType(Long typeid, String typeName, int typeNum, String url) {
        this.typeid = typeid;
        this.typeName = typeName;
        this.typeNum = typeNum;
        this.url = url;
    }

    @Generated(hash = 123181902)
    public BookType() {
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getTypeid() {
        return this.typeid;
    }

    public void setTypeid(Long typeid) {
        this.typeid = typeid;
    }

    public int getTypeNum() {
        return this.typeNum;
    }

    public void setTypeNum(int typeNum) {
        this.typeNum = typeNum;
    }
}
